package edu.hhu.controller;

import java.math.BigDecimal;
import java.util.List;

import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

import edu.hhu.analyse.Analyse;
import edu.hhu.analyse.AnalyseHelp;
public class AnalyseController extends Controller{
	
	public void index(){
		String wellcode= this.getPara("wellcode");
		String zhibiao1= this.getPara("zhibiao1");
		String zhibiao2= this.getPara("zhibiao2");
		String analysePra= this.getPara("analysePra");
		String json="";

		AnalyseHelp analyseHelp=new AnalyseHelp();
		if(analysePra.equals("1")){
			json=analyseHelp.getJson1(wellcode, zhibiao1, zhibiao2,analysePra);
		}
		if(analysePra.equals("2")){
			json=analyseHelp.getJson2(wellcode, zhibiao1, zhibiao2,analysePra);
		}
		if(analysePra.equals("3")){
			json=analyseHelp.getJson3(wellcode, zhibiao1, zhibiao2,analysePra);
		}
		renderJson(json);
	}
	
	
	
}
